﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="admin_login" Codebehind="login.aspx.cs" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>后台登录</title>
    <link href="css/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        table
        {
         font-size:12px;
            }
  </style>
    <script language="javascript" type="text/javascript">

        function checkForm() {

            var name = document.getElementById("txtName");
            var pwd = document.getElementById("txtPwd");
            if (name.value == "") {

                alert('用户名不能为空！');
                name.focus();
                return false;
            }

            if (pwd.value == "") {

                alert('密码不能为空！');
                pwd.focus();
                return false;
            }

        }
    
    </script>
</head>

<body>
<center>
<form id="form1" runat="server">

  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle">
    
    <table width="974px"   border="0"  style="border-color:#15bbcf; height:352px; background-image:url(images/loginBg.jpg)"  cellpadding="5" cellspacing="1" bgcolor="#ffffff">
        <tr>
          <td align="left" valign="top" >
          
          <table width="100%" style=" margin:60px 0 0 40px" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="612" style="padding-left:0px"></td>
                <td align="left" valign="top">
                  <table width="100%"  style="margin-top:20px;" border="0" cellspacing="5" cellpadding="0">
                      <tr> 
                        <td style="padding-top:14px;">
                                  用户名：
                            <asp:TextBox ID="txtName"  runat="server"  style="border:1; border-style:inset; height:20px;"  
                                width="110px" MaxLength="20"></asp:TextBox>
                          </td>
                      </tr>
                      <tr> 
                        <td style="padding-top:10px;">
                        密  码：
                            <asp:TextBox ID="txtPwd" runat="server" style="border:1; margin-left:6px; border-style:inset; height:20px;"  
                                width="110px"  TextMode="Password" MaxLength="20" ></asp:TextBox>
                          </td>
                      </tr>
                     
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="120" style="padding-top:10px; vertical-align:top; "> 
                              验证码：
                                 <asp:TextBox ID="txtCheckCode"  runat="server" style="border:1;border-style:inset; height:20px;  "  
                                      CssClass="userpass" width="55px" MaxLength="5"></asp:TextBox>
                              </td>
                              <td>
                              <img  src="CheckCode.aspx" alt="看不清，换一张" height="24px" width="68px" onclick="this.src = this.src + '?' + new Date().getTime();"  />
                              </td>
                           
                            </tr>
                          
                          </table></td>
                      </tr>
                      <tr><td style="height:20px"> &nbsp;</td></tr>
                      <tr> 
                        <td height="30"><font><asp:ImageButton ID="ImageButton1"  runat="server" ImageUrl="img/login.jpg" OnClientClick="return checkForm();"  align="absmiddle" OnClick="Button1_Click"/>
				            &nbsp;</font></td>
                      </tr>
     
                  </table>
               </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>



</form>

</center>
</body>
</html>
